<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <html>
        <head>
            <title></title>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <script src="__PUBLIC__/jquery-1.7.2.min.js"></script>
            <link href="__PUBLIC__/admin/css/category.css" rel="stylesheet" type="text/css"/>  
        </head>
        <body>
            <div class='content'>
                <form action="{:U('attrEdit')}" method="post">
                    <table>
                        <input type="hidden" name="pro_id" value="{$data.pro_id}"/>
                        <tr>
                            <th>所属类型</th>
                            <td>
                                <select name='type_id'>
                                    <foreach name='type' item='t'>
                                        <option value="{$t.type_id}" <if condition="$t['type_id'] eq $data['type_id']">selected='selected'</if>>{$t.name}</option>
                                    </foreach>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th>属性名称</th>
                            <td><input type="text" name='name' value="{$data.attr_name}"/>
                                <span class="red">*</span><span class='catname'>类型名称请使用中文、英文、下划线</span></td>
                        </tr>
                        <tr>
                            <th>属性选择</th>
                            <td>
                                <textarea cols="40" rows="5" name='choose'>{$data.attr_choose}</textarea>
                                <span class="red">*</span><span class=''>请用换行符分隔不同属性</span></td>
                        </tr>
                        <tr>
                            <th>是否可选择</th>
                            <td>
                        <if condition="$data.flag eq 0">
                            <input type="radio" name='flag' value="0" checked="checked"/>可选择
                            <input type="radio" name='flag' value="1" />不可选择
                            <else/>
                            <input type="radio" name='flag' value="0"/>可选择
                            <input type="radio" name='flag' value="1"checked="checked"/>不可选择
                        </if>
                        <span class="red">*</span></td>
                        </tr>
                        <tr>
                            <td colspan="2" width="45%" align='right'><input type="submit" class="bt1" name='sub' value="保存"/></td>
                        </tr>
                    </table>
                    <div>

                    </div>

                </form>
            </div>
        </body>
    </html>